package com.mes.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.core.annotation.Excel;
import com.mes.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备保养对象 mes_device_maintenance
 * 
 * @author itflash
 * @date 2025-02-27
 */
public class DeviceMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 计划维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenancePlan;

    /** 实际维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualDate;

    /** 维护人员 */
    @Excel(name = "维护人员")
    private String maintainer;

    /** 维护类型 */
    @Excel(name = "维护类型")
    private String maintenanceType;

    /** 维护状态 */
    @Excel(name = "维护状态")
    private String status;

    /** 更新时间 */
    private Date updateDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setMaintenancePlan(Date maintenancePlan) 
    {
        this.maintenancePlan = maintenancePlan;
    }

    public Date getMaintenancePlan() 
    {
        return maintenancePlan;
    }
    public void setActualDate(Date actualDate) 
    {
        this.actualDate = actualDate;
    }

    public Date getActualDate() 
    {
        return actualDate;
    }
    public void setMaintainer(String maintainer) 
    {
        this.maintainer = maintainer;
    }

    public String getMaintainer() 
    {
        return maintainer;
    }
    public void setMaintenanceType(String maintenanceType) 
    {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenanceType() 
    {
        return maintenanceType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceCode", getDeviceCode())
            .append("maintenancePlan", getMaintenancePlan())
            .append("actualDate", getActualDate())
            .append("maintainer", getMaintainer())
            .append("maintenanceType", getMaintenanceType())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("updateDate", getUpdateDate())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
